package cn.itcast.demo;
import java.util.Random;
import java.util.Scanner;
public class Day03{
    public static void main(String[] xc){
        Scanner sc = new Scanner(System.in);
        lo:while (true){
            System.out.println("请输入星期数:");
            System.out.println("输入0退出程序");
            int n=sc.nextInt();
            switch (n){
                case 0:
                    System.out.println("已退出");
                    break lo;
                case 1:
                    System.out.println("星期1");
                    break ;
                case 2:
                    System.out.println("星期2");
                    break ;
            }
        }

    }
}
